package com.zc.study.thread.多线程第四章节.thread4_1_2;

public class Test {
    public static void main(String[] args) {
        Service service = new Service();
        ThreadA a= new ThreadA(service);
        a.setName("A");
        a.start();
        ThreadAA aa =new ThreadAA(service);
        aa.setName("aa");
        aa.start();
        ThreadB b =new ThreadB(service);
        b.setName("b");
        b.start();
        ThreadBB bb = new ThreadBB(service);
        bb.setName("bb");
        bb.start();
    }
}
